package com.huli.service;

import com.huli.domain.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huli.domain.vo.OrderDetailVO;
import com.huli.domain.vo.OrderVerifyVO;
import com.huli.domain.vo.ServiceCompleteVO;
import com.huli.util.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

/**
* @author 张庆阳
* @description 针对表【order_info(订单信息表)】的数据库操作Service
* @createDate 2025-03-17 11:52:08
*/
public interface OrderInfoService extends IService<OrderInfo> {
    //根据订单状态查询完成订单
    Integer updateOrderStatusByYes();
    //根据订单查询未派单的订单
    int updateOrderStatusByNo();
    //查询未完成的订单
    int updateOrderStatusByNotOk();
    //订单的派单功能
    int updateOrderToGo(Integer nurseId,Integer id,@Param("messages") String messages);

    Result show(Integer orderId);

    Result getcase(Integer id);
    //查询订单明细

    List<OrderDetailVO> findByOrderNo(OrderDetailVO orderDetailVO);

    //根据订单号查询订单详情
    List<OrderDetailVO> getOrderDetail(OrderDetailVO orderDetailVO);

    /**
     * 验证订单验证码并开始服务
     * @param verifyVO 验证信息
     * @return 验证结果
     */
    Result verifyAndStartService(OrderVerifyVO verifyVO);

    /**
     * 服务完成确认
     * @param completeVO 服务完成信息
     * @return 处理结果
     */
    Result completeService(ServiceCompleteVO completeVO,@RequestParam("messages") String messages);



}
